package com.rescue.mapper;

import com.rescue.forum.entity.EmailCode;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface EmailCodeMapper {
    @Select("select * from email_code where email = #{to}")
    EmailCode getByEmail(String to);

    void insert(EmailCode newEmailCode);
}
